package com.netease.nie.strategy;

import java.util.List;

import org.springframework.stereotype.Component;

import com.netease.nie.dto.BannerDto;

/**
 * 
 * @author KingsHunter
 * @createDate July 2rd,2016
 *
 */
@Component
public class BannerContext {

	private BannerStrategy bannerStrategy;

	public void setBannerStrategy(BannerStrategy bannerStrategy) {
		this.bannerStrategy = bannerStrategy;
	}

	public List<BannerDto> listBannerDtoByPosition(Long userId, int position) {
		return bannerStrategy.listBannerDtoByPosition(userId, position);
	}
	
}
